LIBRARY IEEE; 
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_ARITH.ALL;
USE IEEE.STD_LOGIC_UNSIGNED.ALL;

--Circuitos Logicos com 2 portas de 4 entradas

ENTITY ic_4 IS

    PORT(pin1, pin2, pin4, pin5, pin9, pin10, pin12, pin13: IN STD_LOGIC; 
        pin6, pin8: OUT STD_LOGIC);

END ic_4;

ARCHITECTURE nand4_ic OF ic_4 IS

BEGIN

    pin6 <= NOT((pin1 AND pin2) AND (pin4 AND pin5));
    pin8 <= NOT((pin9 AND pin10) AND (pin12 AND pin13));

END nand4_ic;